<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
?>
<?php $host = Yii::$app->request->hostInfo.'/' ;?>
<style>
    .yulan-content img{ width: 100%;}
</style>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>文化云APP-预览</title>
    <link href="<?= $host;?>bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="<?= $host;?>images/style.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid yulan-con">
    <div class="yulan-title"><?php echo $post['title'];?></div>
    <div class="yulan-info">
        <img src="<?php echo Yii::$app->user->identity->attributes['head_img']?Yii::$app->user->identity->attributes['head_img']:'http://image01.jsjznews.com/default/default_header.png';?>" alt="">
        <span><?php echo Yii::$app->user->identity->attributes['nickname']?urldecode(Yii::$app->user->identity->attributes['nickname']):Yii::$app->user->identity->attributes['phone'];?></span>
        <em><?php echo date('Y-m-d H:i:s');?></em>
    </div>
    <div class="yulan-content"><?php echo $post['content'];?></div>
</div>
<div class="yulan-footer">
    <em></em><span>写评论...</span>
    <i class="f1"></i>
    <i class="f2"></i>
    <i class="f3"></i>
</div>
</body>
</html>


